
--蓝钻礼包配置信息查询枚举
BLUE_GIFT_NEW		= 1 --蓝钻新手礼包
BLUE_GIFT_DAILY	= 2 --蓝钻每日礼包
BLUE_GIFT_LEVEL	= 3 --蓝钻等级礼包

--蓝钻礼包领取枚举
BLUE_GIFT_GET_NEW			= 1 --蓝钻新手礼包
BLUE_GIFT_GET_DAILY		= 2 --蓝钻每日礼包
BLUE_GIFT_GET_DAILY_YEAR	= 3 --年费蓝钻每日礼包
BLUE_GIFT_GET_LEVEL		= 4 --蓝钻等级礼包（普通）
BLUE_GIFT_GET_LEVEL_BLUE	= 5 --蓝钻等级礼包（蓝钻）
SSLL_GIFT_GET_DAILY		= 6 --3366每日礼包
BLUE_GIFT_GET_DAILY_SUPER	= 7 --豪华蓝钻每日礼包

--开通类型,用于获取token成功后回调。判断调用的前端接口
KT_YELLOW = 1
KT_BLUE = 2

--使用元宝，发货类型枚举
-- 普通商城发货
DELIVER_ID_SHOP_ITEM = 1
--基金发货
DELIVER_ID_FUND = 2

--
YELLOW_DISCOUNT_ID = "UM15092518301085"
BLUE_MP_ID = "UM15092518301085"

APP_ID = 1104613775

function MakeTencentCommonParam(pf_info)
    return {openid = pf_info.openid,
            openkey = pf_info.openkey,
            pfkey = pf_info.pfkey,
            pf = pf_info.pf,}
end

--[[function MakeTencentCommonParam(pf_info)

    return {openid = "D3E8D3E16F262253A0411D648F8439A0" ,--pf_info.openid,
            openkey = "5A6B9B3BF332BC030EAF103429912D66" ,--pf_info.openkey,
            pfkey = "a18c0cff850de3b5e91ed665d00750c0",--pf_info.pfkey,
            pf = "pengyou",--pf_info.pf,
            }
end
]]--

--分割字符串工具接口
function Split(szFullString, szSeparator)
	local nFindStartIndex = 1
	local nSplitIndex = 1
	local nSplitArray = {}
	if szSeparator == nil or szSeparator == "" then
		return nSplitArray
	end
	local count = 1
	while true do
		count = count + 1
		if count > 10 then
			break
		end
	   local nFindLastIndex = string.find(szFullString, szSeparator, nFindStartIndex)
	   if not nFindLastIndex then
		nSplitArray[nSplitIndex] = string.sub(szFullString, nFindStartIndex, string.len(szFullString))
		break
	   end
	   nSplitArray[nSplitIndex] = string.sub(szFullString, nFindStartIndex, nFindLastIndex - 1)
	   nFindStartIndex = nFindLastIndex + string.len(szSeparator)
	   nSplitIndex = nSplitIndex + 1
	end
	return nSplitArray
end


DELIVER_PHP = "/qqapi/delivery.php?a="
CODE_PHP = "/qqapi/code.php?a="
COMPASS_QUIT_PHP = "/qqapi/report_quit.php?a="
COMPASS_LOGIN_PHP = "/qqapi/report_login.php?a="
TASK_V3="/qqapi/task_v3.php?a="
CHAT_REPORT = "/api/chat_report.php?a="
FEED_PHP = "/qqapi/delivery.php?a="
INVITE_PHP = "/qqapi/invite.php?a="

